//
//  SortMoreTableViewCell.m
//  MountEverestFM
//
//  Created by dllo on 15/11/1.
//  Copyright © 2015年 chenn. All rights reserved.
//

#import "SortMoreTableViewCell.h"

@implementation SortMoreTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.button1=[UIButton buttonWithType:UIButtonTypeSystem];
        [self.contentView addSubview:self.button1];
        
        self.button2=[UIButton buttonWithType:UIButtonTypeSystem];
        [self.contentView addSubview:self.button2];

        self.button3=[UIButton buttonWithType:UIButtonTypeSystem];
        [self.contentView addSubview:self.button3];

        
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.button1.frame=CGRectMake(0, 0, self.contentView.bounds.size.width/3, self.contentView.bounds.size.height);
    self.button2.frame=CGRectMake(self.contentView.bounds.size.width/3, 0, self.contentView.bounds.size.width/3, self.contentView.bounds.size.height);
    self.button3.frame=CGRectMake(self.contentView.bounds.size.width/3*2, 0, self.contentView.bounds.size.width/3, self.contentView.bounds.size.height);
}







/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
